﻿using Missbot.Service;

namespace Missbot.AIModule.AutoReaction
{
    public class AutoReactionRec : DbBaseEntity
    {
        public string UserID { get; init; }
        
        public string UserName { get; set; }
        
        public string Host { get; set; }
    }

    public static class AutoReactionRecDA
    {
        public static AutoReactionRec Get(string UserID)
        {
            return MongoService<AutoReactionRec>.GetOnly(p => p.UserID == UserID);
        }

        public static void Insert(this AutoReactionRec entity)
        {
            MongoService<AutoReactionRec>.Insert(entity);
        }
    }
}